<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <title>考生管理</title>

        <th:block th:include="fragment_header :: header">
        </th:block>
    </head>
    <body>
    <div th:replace="fragment_menu :: navmenu"></div>
<!--    <h2 style="padding: 20px 100px">SONY</h2>-->
    <ul style="background-color:  #DCDCDC;">
    <ul class="nav nav-tabs" style="padding:0px 100px" >
        <li class="nav-item " >
            <a class="nav-link active" href="#" th:href="@{/exam_student/students}">考生管理 </a>
        </li>
        <li class="nav-item dropdown ">
            <a class="nav-link dropdown-toggle text-black" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">考生添加 </a>
            <ul class="dropdown-menu" style="background-color: #DCDCDC;">
                <li><a class="dropdown-item"  th:href="@{/exam_student/add}">通过考生库添加 </a></li>
                <li><a class="dropdown-item"  th:href="@{/exam_student/find}">通过搜索员工号添加 </a></li>
<!--                <li><a class="dropdown-item"  th:href="@{/exam_student/input}">通过输入考生信息添加 </a></li>-->
            </ul>
        </li>
        <li class="nav-item">
            <a class="nav-link text-black" th:href="@{/exam_student/exam_select}">考试信息查询 </a>
        </li>
    </ul>
    </ul>

    <div style="padding: 50px 100px 10px" class="pre-scrollable">
        <h5 class="text-muted" style="padding: 10px 10px">考生库</h5>
    <table class="table table-bordered" style="background-color:#FFFFFF;">
        <thead class="table-secondary">
        <tr>
<!--            <th scope="col">#</th>-->
            <th scope="col">员工号</th>
            <th scope="col">姓名</th>
            <th scope="col">性别</th>
            <th scope="col">邮箱</th>
            <th scope="col">电话</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="studentModel: ${studentModels}">
<!--            <th scope="row">1</th>-->
            <td th:text="${studentModel.employeeNo}">employeeNo</td>
            <td th:text="${studentModel.name}">name</td>
            <td th:text="${studentModel.gender} eq '1'?'男':'女'">gender</td>
            <td th:text="${studentModel.email}">email</td>
            <td th:text="${studentModel.mobile}">mobile</td>
        </tr>
        </tbody>
    </table>
    </div>
    </body>
</html>